import duckdb from '@duckdb/node-api';

import { DuckDBConnection } from '@duckdb/node-api';

import { DuckDBInstance } from '@duckdb/node-api';

console.log(duckdb.version());

console.log(duckdb.configurationOptionDescriptions());

// const connection = await DuckDBConnection.create();

// console.log(connection);

const instance = await DuckDBInstance.create('my_duckdb.db', {
  threads: '4'
});

const connection = await instance.connect();

console.log(instance);

console.log(connection);

connection.disconnectSync();